<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../jsLib/angular.js"></script>
    <script src="jquery/jquery-2.1.3.js"></script>
    <!--<script src="jquery/jquery.json.js"></script>-->
    <script src="jquery/jquery.ajaxRequest.js"></script>
    <!--<script src="jquery/ajaxfileupload.js"></script>-->

    <script src="interface.js"></script>
    <title></title>
</head>
<body>
<div ng-app="app" ng-controller="fun">
    <input type="text" ng-model="aa">
    <input type="text" ng-model="bb">
    <h3>{{cc}}</h3>
     <button class="" ng-click="out()">点我</button>
</div>
<!--<button id="aa"></button>-->
<script>
  /*  document.getElementById('aa').onclick = function(){
        var options = {};
        options.successFunction = function(data){
            alert(data)

        }
        OrderingSystem.getData(options)
    }*/
    var app = angular.module('app',[]);
    app.controller('fun',function($scope){
        $scope.aa="白庆春";
        $scope.bb="了解一点angular了";
        $scope.cc="试试"

        $scope.out = function(){
            var options = {};
            options.successFunction = function(data){
                alert(data)
                $scope.cc = data;

                $scope.$apply();
            }
            OrderingSystem.getData(options)
        }
    })
</script>
</body>
</html>